Name | Type | Description |
ProductCount | Integer | Gets the number of products currently on the Tilt Tray sorter |
Running | Boolean | Gets/Sets the running state of the sorter |
Speed | Number | Gets/Sets the speed of the sorter |
NumOfTrays | Integer | Gets the number of trays |
CurrentTray | Integer | Gets the Tray Index of the tray that just passed a PE sensor |
BaseColor | String | New in V7.0. Gets/Sets the name of the color of the base |
TraysColor | String | New in V7.0. Gets/Sets the name of the color of the trays |
BaseVisible | Boolean | New in V7.0. Gets/Sets the visibility of the base |
TraysVisible | Boolean | New in V7.0. Gets/Sets the visibility of the trays |
OnSorterRunningStateChange
Invoked when the running state of the Tilt Tray Sorter is changed
Callback Signature
void xxxxxxxxxxxxxxxxx (sender: object);
Name | Type | Description |
sender | Object | The object associated with the changed property |
OnCurrentTrayChange
Invoked when the currentTray property of the Tilt Tray Sorter is changed
Callback Signature
void xxxxxxxxxxxxxxxxx (sender: object);
Name | Type | Description |
sender | Object | The object associated with the changed property |
OnProductAdded
Invoked when a product is added to the Tilt Tray sorter
Note: This event does not support multiple subscription. Previous subscription will be lost if subscribe twice.
Callback Signature
void xxxxxxxxxxxxxxxxx (sender: object, product: Product, source: object, tray: object);
Name | Type | Description |
sender | Object | The object associated with the changed property |
product | Product | The added product |
source | Object | The object from which the product is coming |
tray | Object | The tray index on which the product is added. See note at the bottom of the page. |
OnProductRemoved
Invoked when a product is removed from the Tilt Tray sorter
Note: This event does not support multiple subscription. Previous subscription will be lost if subscribe twice.
Callback Signature
void xxxxxxxxxxxxxxxxx (sender: object, product: Product, exit: object, tray: object);
Name | Type | Description |
sender | Object | The object associated with the changed property |
product | Product | The removed product |
exit | Object | The object to which the product is transferred |
tray | Object | The tray index from which the product is removed. See note at the bottom of the page. |
OnProductReachExit
Invoked when a product has reached the exit point, but has not been removed yet
Note: This event does not support multiple subscription. Previous subscription will be lost if subscribe twice.
Callback Signature
void xxxxxxxxxxxxxxxxx (sender: object, product: Product, exit: object);
Name | Type | Description |
sender | Object | The object associated with the changed property |
product | Product | The product that is going to be transferred |
exit | Object | The object to which the product should be transferred |
OnProductFailToExit
Invoked when a product tried to exit but failed to do so. ie Exit chute is full.
Note: This event does not support multiple subscription. Previous subscription will be lost if subscribe twice.
Callback Signature
void xxxxxxxxxxxxxxxxx (sender: object, product: Product, exit: object, reasonCode: integer);
Name | Type | Description |
sender | Object | The object associated with the changed property |
product | Product | The product that should have been transferred |
exit | Object | The object to which the product should have been transferred |
reasonCode | Integer | The reason for which the product failed to exit.
0 = Chute is full, 1 = Consecutive trays. |
void SetSorterPosition(trayIndex: integer, distance: double);
Called to adjust the sorter position to synchronize it to a known point
Name | Type | Description |
trayIndex | Integer | The index number of the tray to align at the distance indicated by the 'position' parameter. See note at the bottom of the page. |
position | Double | The distance from the start of the sorter(metres) |
Return value - void
void InductProduct(product: Product, trayIndex: integer)
Called to add a product item to the sorter on a specific tray
Name | Type | Description |
product | Product | Product object to add to the sorter |
trayIndex | Integer | Index of the tray that the product will be placed on. See note at the bottom of the page. |
Return value - void. The function call will fail to add a product on the cell if the specified cell is already occupied or the trayIndex value is invalid. It is the user's responsibility to check the cell is free (GetProductOnTray) before inducting.
The user can pass zero as the argument for product, in this case the sorter will automatically create product on the specified cell as long as the cell is not occupied and valid.
integer GetProductOnTray(trayIndex: integer);
Called to return the product objectId from a specific tray of the sorter if it exists
Name | Type | Description |
trayIndex | Integer | The index number of the tray to return any product from. See note at the bottom of the page. |
Return value - integer objectId. The return value may be zero if no product is found
void RemoveProduct(trayIndex: integer, target: object);
Called to remove product from the sorter on a specific tray
Name | Type | Description |
trayIndex | Integer | The index number of the tray that product will be removed from. See note at the bottom of the page. |
target | Object | The destination equipment object to move the product to. Can be null. |
Return value - void
Example:
var sorter = GetComponentByNameAndType("Sorter1", "Tilt Tray Sorter"); var conveyor = GetComponentByNameAndType("Conveyor1", "Conveyor"); sorter.RemoveProduct(2, null); // just remove the product sorter.RemoveProduct(3, conveyor); // remove the product and induct it on an equipment
void ReInstateProduct(trayIndex: integer);
Called to replace product on a specific tray
Name | Type | Description |
trayIndex | Integer | The index number of the tray that product will placed on. The product will be the product item that was last on the tray, if it still exists, or a new product item |
Return value - void
void RemoveAllProduct();
Called to remove all the product items from the sorter
Return value - void